<template>
  <div class="continer">
    <Category title="游戏">
      <template scope="atguigu">
        <ul>
          <li v-for="(game, index) in atguigu.games" :key="index">{{game}}</li>
        </ul>
      </template>
    </Category>
    <Category title="游戏">
      <template scope="{games}">
        <ol>
          <li v-for="(game, index) in games" :key="index">{{game}}</li>
        </ol>
      </template>
    </Category>

    <Category title="游戏">
      <template slot-scope="{games}">
          <h4 v-for="(game, index) in games" :key="index">{{game}}</h4>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category";
export default {
  name: "App",
  components: {
    Category,
  },
};
</script>

<style>
.continer,
.foot {
  display: flex;
  justify-content: space-around;
}

img {
  width: 100%;
}
video {
  width: 100%;
}

h4 {
  text-align: center;
}
</style>
